Optimal. Leaf size=7 \[ \frac {\tanh ^{-1}(\sin (x))}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3254, 3855}
\begin {gather*} \frac {\tanh ^{-1}(\sin (x))}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3254
Rule 3855
Rubi steps
\begin {align*} \int \frac {\cos ^3(x)}{\left (a-a \sin ^2(x)\right )^2} \, dx &=\frac {\int \sec (x) \, dx}{a^2}\\ &=\frac {\tanh ^{-1}(\sin (x))}{a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(37\) vs. \(2(7)=14\).
time = 0.00, size = 37, normalized size = 5.29 \begin {gather*} \frac {-\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+\log \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 8, normalized size = 1.14
method | result | size |
default | \(\frac {\arctanh \left (\sin \left (x \right )\right )}{a^{2}}\) | \(8\) |
norman | \(\frac {\ln \left (\tan \left (\frac {x}{2}\right )+1\right )}{a^{2}}-\frac {\ln \left (\tan \left (\frac {x}{2}\right )-1\right )}{a^{2}}\) | \(25\) |
risch | \(\frac {\ln \left ({\mathrm e}^{i x}+i\right )}{a^{2}}-\frac {\ln \left ({\mathrm e}^{i x}-i\right )}{a^{2}}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 21 vs.
\(2 (7) = 14\).
time = 0.27, size = 21, normalized size = 3.00 \begin {gather*} \frac {\log \left (\sin \left (x\right ) + 1\right )}{2 \, a^{2}} - \frac {\log \left (\sin \left (x\right ) - 1\right )}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 20 vs.
\(2 (7) = 14\).
time = 0.38, size = 20, normalized size = 2.86 \begin {gather*} \frac {\log \left (\sin \left (x\right ) + 1\right ) - \log \left (-\sin \left (x\right ) + 1\right )}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 22 vs.
\(2 (7) = 14\).
time = 2.32, size = 22, normalized size = 3.14 \begin {gather*} - \frac {\log {\left (\tan {\left (\frac {x}{2} \right )} - 1 \right )}}{a^{2}} + \frac {\log {\left (\tan {\left (\frac {x}{2} \right )} + 1 \right )}}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 23 vs.
\(2 (7) = 14\).
time = 0.43, size = 23, normalized size = 3.29 \begin {gather*} \frac {\log \left (\sin \left (x\right ) + 1\right )}{2 \, a^{2}} - \frac {\log \left (-\sin \left (x\right ) + 1\right )}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 7, normalized size = 1.00 \begin {gather*} \frac {\mathrm {atanh}\left (\sin \left (x\right )\right )}{a^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________